package com.shareroad.dubboweb.frame.dao.data;

import java.util.HashMap;
import java.util.Map;

/**
 * 缓存 dubbo 服务
 * @author zhangjianfeng
 *
 */
public class dubboServiceCache {
	private static Map<String,Object> dubboServiceData = new HashMap<String,Object>();
	
	public static Object getService(String interfaceName){
		return dubboServiceData.get(interfaceName);
	}
	
	public static void addService(String interfaceName,Object service){
		dubboServiceData.put(interfaceName, service);
	}
	
	public static void removeService(String interfaceName){
		dubboServiceData.remove(interfaceName);
	}
}
